<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="${STATIC}/lib/html5.js"></script>
<script type="text/javascript" src="${STATIC}/lib/respond.min.js"></script>
<script type="text/javascript" src="${STATIC}/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="${STATIC}/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="${STATIC}/h-ui/css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link href="${STATIC}/lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="${STATIC}/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<link href="${STATIC}/css/jb_admin.css" rel="stylesheet" type="text/css" />
<title>后台登录 - JBase平台</title>
</head>
<body>
<div class="login_header"></div>
<div class="loginWraper">
  <div id="loginform" class="loginBox">
    <form class="form form-horizontal" id="loginForm" action="${BASE}/admin/login" method="post">
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
        <div class="formControls col-xs-6">
          <input id="loginName" name="loginName" type="text" placeholder="登录名称"  datatype="*2-16" nullmsg="不可为空" class="input-text size-L">
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
        <div class="formControls col-xs-6">
          <input id="password" name="password" type="password" placeholder="登录密码" datatype="*6-16" nullmsg="不可为空" class="input-text size-L">
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <div class="formControls col-xs-6 col-xs-offset-3">
          <input class="input-text size-L" type="text" placeholder="验证码" id="validateCode" name="validateCode" ajaxurl="${BASE}/servlet/validateCodeServlet" datatype="*4-4" nullmsg="不可为空" style="width:150px;">
          <img id="validateCodeImg" src=""> <a id="kanbuq" href="javascript:;">看不清，换一张</a> 
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row">
        <div class="formControls col-xs-3 col-xs-offset-3">
          <label for="rememberMe"><input type="checkbox" name="rememberMe" id="rememberMe" value="1">&nbsp;保持登录状态</label>
        </div>
        <div class="formControls col-xs-6" id="msgdemo2" style="color: red;">&nbsp;${error_message!}</div>
      </div>
      <div class="row">
        <div class="formControls col-xs-8 col-xs-offset-3">
          <input name="" type="submit" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
          <input name="" type="reset" class="btn btn-default radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
        </div>
      </div>
    </form>
  </div>
</div>
<div class="footer">Copyright &copy;2015 JBase</div>
<script type="text/javascript" src="${STATIC}/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="${STATIC}/lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="${STATIC}/h-ui/js/H-ui.js"></script> 
<script type="text/javascript">
$(function(){
	$("#validateCodeImg").attr('src','${BASE}/servlet/validateCodeServlet?'+new Date().getTime());
	$("#loginForm").Validform({
		tiptype:2
	});
	$("#validateCodeImg").click(function(){
		$("#validateCodeImg").attr('src','${BASE}/servlet/validateCodeServlet?'+new Date().getTime());
		$("#validateCode").validform_valid="false";
	});
	$("#kanbuq").click(function(){
		$("#validateCodeImg").attr('src','${BASE}/servlet/validateCodeServlet?'+new Date().getTime());
		$("#validateCode").validform_valid="false";
	});
});
</script>
</body>
</html>